home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / Time_module / smakefile < prev   
Makefile  |  1998-09-18  |  2KB  |  96 lines

  1. # Makefile for a sample Opus 5 module
  2.  
  3. # This is based on the structure of the real Opus makefile, but may be
  4. # adapted as you see fit
  5.  
  6.  
  7. # Files for this module
  8.  
  9. EXAMPLEOBJS   =  modinit.o ModuleEntry.o IconClock.o ClockConfig.o buildinstrings.o 
  10.  
  11. # Library-Version/-Revision
  12.  
  13. MODULENAME    = time.module
  14. EXAMPLEVER    =   56
  15. EXAMPLEREV    =   0
  16.  
  17.  
  18. # Compiler options
  19. CCOPTS =  noversion optimize def DATATYPES
  20. # profile
  21.  
  22. # Linker options
  23. SLINKOPTS = noicons smallcode smalldata
  24. # nodebug
  25.  
  26. #########################################################################
  27.  
  28. all: includes/buildin.strings $(MODULENAME)
  29.  
  30. #########################################################################
  31.  
  32. $(MODULENAME): $(EXAMPLEOBJS) smakefile scoptions
  33.         slink with <<
  34. libprefix _L_
  35. libfd modules.fd
  36. from lib:libent.o lib:libinit.o $(EXAMPLEOBJS)
  37. to $@
  38. lib lib:sc.lib lib:amiga.lib lib:dopuslib.lib lib:sdi_std.lib
  39. libversion $(EXAMPLEVER)
  40. librevision $(EXAMPLEREV)
  41. $(SLINKOPTS)
  42. <
  43.  
  44. #########################################################################
  45.  
  46. # This will create the string file
  47. buildinstrings.o : includes/buildin.strings 
  48.         setdate buildinstrings.c
  49.         sc buildinstrings.c
  50. #
  51.  
  52. ModuleEntry.o: ModuleEntry.c includes/Project.h
  53.  
  54. #
  55.  
  56. Prefs.o: Prefs.c includes/Project.h
  57.  
  58. #
  59.  
  60. IconClock.o: IconClock.c includes/Project.h includes/Clock.h includes/buildin.strings
  61.  
  62. #
  63.  
  64. ClockConfig.o: ClockConfig.c includes/Clock.h
  65.  
  66. #
  67. modinit.o: modinit.c
  68.  
  69.  
  70. #########################################################################
  71.  
  72.  
  73. .c.o:
  74.         sc $(CCOPTS) $*.c
  75. .asm.o:
  76.         sc:c/asm -iASMINC: $*.asm
  77. .cd.strings:
  78.         catcomp descriptor=$*.cd cfile=$*.strings
  79.  
  80. #########################################################################
  81.  
  82. # wird nur bei Tooltype CLEAN ausgeführt...
  83.  
  84. clean:
  85.         delete ~(\#?_strings).o quiet
  86.         copy *.module DOpus5:modules
  87.         setdate \#?.cd
  88.                   
  89. #########################################################################
  90.  
  91. copy: 
  92.         copy *.module DOpus5:modules
  93.         wait 5
  94.         avail flush          
  95.  
  96.